<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 基本样式 -->
    <link rel="stylesheet" href="../src/mixins/style/normalize.css" />
    <link rel="stylesheet" href="../src/com_third/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../src/mixins/style/base.css" />

    <!-- 当时项目公共样式 -->
    <link rel="stylesheet" href="src/common.css" />

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="../src/lib/bootstrap.min.css" />

    <link rel="stylesheet" href="http://kindeditor.net/ke4/themes/default/default.css">


    <script src="../src/lib/jquery.js"></script>

    <link href="https://cdn.bootcss.com/layer/2.3/skin/layer.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>

    <script src="../src/lib/sea-all.js"></script>
    <script src="../boot.js"></script>





    <script src="http://kindeditor.net/ke4/kindeditor-min.js"></script>
    <script src="http://kindeditor.net/ke4/lang/zh-CN.js"></script>


    <style>
        html,
        body {
            margin: 0 auto;
            padding: 0;
            width: 1220px;
            /* overflow: hidden; */
        }

        .body-inner {
            height: 100%;
        }

        .card_each {

            margin-top: 10px;
        }

        .kindeditor_wrap {
            width: 940px;
            height: 470px;
            /* visibility: hidden; */
            float: left;
            background-color: lightblue;
            margin-bottom: 10px;

        }

        .kindeditor_textarea {
            width: 940px;
            height: 470px;
            /* visibility: hidden; */
        }

        .pic_wrap {
            width: 250px;
            height: 440px;
            float: right;
            /* display: none; */
        }

        .img_each_contaner_wrap {
            width: 250px;
            height: 470px;
            overflow: hidden;
        }

        .img_each_contaner {
            overflow: hidden;
            height: 150px;
            /* border: 1px #ccc solid; */
        }

        .img_each_contaner img {
            width: 100%;
            height: 150px;
            display: block;
            background-color: lightblue;
        }

        .img_each_contaner:hover .mask,
        .img_each_contaner:hover .back {
            display: block;
            cursor: pointer;
        }

        .back {
            position: relative;
            top: -100%;
            width: 100%;
            height: 100%;
            text-align: center;
        }



        .back .one {
            width: 100%;
            height: 30px;
            line-height: 30px;
            background-color: black;
            opacity: 0.6;
            position: absolute;
            bottom: 0;
            text-align: right;
            padding-right: 10px;
            color: white;
        }

        .back .one span {
            padding: 2px 4px;
            color: white;
            line-height: 30px;
            height: 30px;
            display: inline-block;
        }

        .m-card {
            position: relative;
        }

        .m-card-mask {
            height: 490px;
            width: 100%;
            position: relative;
            top: -490px;
            opacity: 0.9;
            background: #ccc;
            font-size: 30px;
            color: white;
            text-align: center;
            vertical-align: middle;
        }

        .m-card-mask-text {
            position: relative;
            top: 45%;
        }

        .pic_tools_wrap {
            background: #e6ebf5;
            height: 40px;
            clear: both;
            display: block;
            line-height: 40px;
        }


        .pic_tools_wrap .pic_tools_title {
            height: 40px;
            font-size: 13px;
            padding-left: 10px;
        }

        .pic_tools_wrap .pic_tools_content {
            height: 40px;
            font-size: 13px;

        }

        .pic_tools_wrap .pic_tools_content select {
            height: 22px;
            line-height: 22px;
            padding: 0px 4px;
        }
    </style>
</head>

<body class="">


    <div class="clearfix" id="app">


        <button class="btn btn-warning submit">提交</button>

        <button class="btn btu-success add">新增</button>

        <!--新的内容在这里展示-->
        <div class="content-placeholder"></div>

    </div>




    <!--模板. -->
    <!--需要数据的地方，用{{}}括起来.-->
    <script id="one_tpl" type="text/x-jquery-tmpl">  
        <div class="m-card clearfix card_each clearfix" id="card_${id}">
                <div class="header clearfix">
                    <div class="fl">
                        <i class="fa fa-cube"></i>
                        <span class="dialog-title">${id}</span>
                    </div>
                    <div class="fr">
                        <div style="display: inline-block;">
                           
                            <div>
                                <a>暂删</a>
                                <span class="del" target-id="${id}">删除</span>
                            </div>
                        </div>
                        <a class="fa fa-angle-double-up"></a>
                    </div>
                </div>
                <div class="body clearfix">
                    <div class="body-inner">
                        <div class="kindeditor_wrap">
    
                            <textarea name="content_${id}" area-id="${id}" class="kindeditor_textarea" >${content}</textarea>
                        </div>
                        <div title="图片" class="pic_wrap clearfix">
                            <div class="img_each_contaner_wrap">
                                <div class="img_each_contaner">
                                    <img src="${imgUrlOne}"  id="imgUrlOne_${id}" alt="">
                                    <div class="back">
                                        <div class="one">
                                            <span class="">选图</span>
                                            <span class="select_img" target-id="imgUrlOne_${id}">写图</span>
                                            <span class="clear_img" target-id="imgUrlOne_${id}">清空</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="img_each_contaner mt_10">
                                        <img src="${imgUrlTwo}"  id="imgUrlTwo_${id}" alt="">
                                    <div class="back">
                                        <div class="one">
                                            <span>选图</span>
                                            <span class="select_img" target-id="imgUrlTwo_${id}">写图</span>
                                            <span class="clear_img" target-id="imgUrlTwo_${id}">清空</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="img_each_contaner mt_10">
                                        <img src="${imgUrlThree}"  id="imgUrlThree_${id}" alt="">
                                    <div class="back">
                                        <div class="one">
                                            <span>选图</span>
                                            <span class="select_img" target-id="imgUrlThree_${id}">写图</span>
                                            <span class="clear_img" target-id="imgUrlThree_${id}">清空</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                          
                        </div>
                        <div class="pic_tools_wrap inline-block-container">
                            <div class="pic_tools_title">每排图片张数:</div>
                            <div class="pic_tools_content">
                                <select class="imgType" id='imgType_${id}'>

                                        {{if imgType==1}}
                                            <option value="1" selected>一张</option>
                                        {{else}}
                                        <option value="1">一张</option>
                                        {{/if}}

                                        {{if imgType==2}}
                                            <option value="2" selected>二张</option>
                                        {{else}}
                                            <option value="2">二张</option>
                                        {{/if}}

                                        {{if imgType==3}}
                                            <option value="3" selected>三张</option>
                                        {{else}}
                                            <option value="3">三张</option>
                                        {{/if}}

                                </select>
                            </div>
                            <div class="pic_tools_title">图片高度:</div>
                            <div class="pic_tools_content">
                                <select class="imgHeight" id='imgHeight_${id}'>

                                        {{if imgHeight==100}}
                                            <option value="100" selected>100</option>
                                        {{else}}
                                             <option value="100">100</option>
                                        {{/if}}

                                        {{if imgHeight==200}}
                                            <option value="200" selected>200</option>
                                        {{else}}
                                            <option value="200">200</option>
                                        {{/if}}

                                        {{if imgHeight==300}}
                                            <option value="300" selected>300</option>
                                        {{else}}
                                            <option value="300">300</option>
                                        {{/if}}

                                   
                                </select>
                            </div>
                        </div>
                        
                    </div>
                </div>
                <!-- <div class="m-card-mask">
                    <div class="m-card-mask-text">暂无效,前台不显示.如需显示,请点右上角恢复</div>
                </div> -->
        </div>
    </script>
    <script src="../src/lib/jquery.tmpl.min.js"></script>

    <script>

        jQuery(function () {

            seajs.use('./artPartEdit.js');

        });





    </script>






</body>

</html>